﻿using System;
using System.Collections;
using System.Reflection;

/// <summary>
///Announces 的摘要说明
/// </summary>
namespace EHSubmit.Model
{
    public class Announces
    {
        private int _aID;
        private string _topic;
        private string _body;
        private string _userID;
        private string _userName;
        private DateTime _submitTime;
        private int _departmentID;
        private string _departmentName;
        private int _rescnt;
        private DateTime _resLastTime;

        public Announces()
        {
            this.Init();
        }

        /// <summary>
        /// 帖子初始化
        /// </summary>
        /// <returns>初始化后返回真</returns>
        public bool Init()
        {
            this._aID = 0;
            this._body = string.Empty;
            this._topic = string.Empty;
            this._userID = string.Empty;
            this._userName = string.Empty;
            this._departmentID = 0;
            this._departmentName = string.Empty;
            this._rescnt = 0;
            this._resLastTime = DateTime.Now;
            this._submitTime = DateTime.Now;
            return true;
        }

        public Announces(int _aID,string _topic,string _body,string _userID,string _userName,DateTime _submitTime,int _departmentID,string _departmentName, int _rescnt,DateTime _resLastTime)
        {
            this._aID = _aID;
            this._body = _body;
            this._departmentID = _departmentID;
            this._departmentName = _departmentName;
            this._rescnt = _rescnt;
            this._resLastTime = _resLastTime;
            this._submitTime = _submitTime;
            this._topic = _topic;
            this._userID = _userID;
            this._userName = _userName;
        }

        public int AID
        {
            get { return _aID; }
            set { _aID = value; }
        }

        public string Body
        {
            get { return _body; }
            set { _body = value; }
        }

        public int DepartmentID
        {
            get { return _departmentID; }
            set { _departmentID = value; }
        }

        public string  DepartmentName
        {
            get { return _departmentName; }
            set { _departmentName = value; }
        }

        public string Topic
        {
            get { return _topic; }
            set { _topic = value; }
        }

        public string UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }

        public int rescnt
        {
            get { return _rescnt; }
            set { _rescnt = value; }
        }

        public string  UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        public DateTime SubmitTime
        {
            get { return _submitTime; }
            set { _submitTime = value; }
        }

        public DateTime resLastTime
        {
            get { return _resLastTime; }
            set { _resLastTime = value; }
        }
    }
}

